const cinemasDao = require('../dao/cinemasDao');

// 查所有
module.exports.findAll = async function () {
    return await cinemasDao.findAll();
}

//增加
module.exports.insert = async function (obj) {
    return await cinemasDao.insert(obj);
};

// 删除
module.exports.remove = async function (id) {
    return await cinemasDao.remove(id);
};

//修改
module.exports.upData = async function (id, cinemas) {
    return await cinemasDao.upData(id, cinemas);
};


//查询
module.exports.search = async function (searchObj, page) {
    return await cinemasDao.find(searchObj, page);
};
//通过id查找
module.exports.findById = async function (id) {
    return await cinemasDao.findById(id)
};
